import java.util.Scanner;

public class Homework_603_3 {
	public static void main(String[] args) {
		// 判断一个正数是不是回文数，回文数就是倒过来和原数相同，比如121,11,9,1001等
		Scanner input = new Scanner(System.in);
		int a;
		do {
			System.out.println("请输入一个正数：");
			a = input.nextInt();
		} while (a<=0);

		int b = a;
		int c = 0;
		for (int i = 0; b > 0; i++) {
			c = c * 10 + b % 10;
			b /= 10;
		}
		System.out.println(a == c ? "这个数是回文数" : "这个数不是回文数");
	}
}
